package com.object_.oriented_.polymorphic;

//多态的
abstract class Animal {
    abstract void eat();

    public void age() {
        //动态调用
        System.out.println("Animal 的 age " + nums());
    }

    public int nums() {
        return 100;
    }
}